
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

{{- if .Description -}}
  <meta name="description" content="{{ .Description | safeHTML }}" />
{{ else if .IsPage }}
  <meta name="description" content="{{ .Summary | plainify }}" />
{{ else if .Site.Params.description }}
  <meta name="description" content="{{ .Site.Params.description | safeHTML }}" />
{{- end -}}

{{- if .Keywords -}}
  {{ $length := len .Keywords | add -1 -}}
  <meta name="keywords" content="{{ range $index, $element := .Keywords }}{{ $element | safeHTML }}{{if ne $index $length }}, {{ end }}{{ end }}" />
{{ else if .Site.Params.keywords }}
  {{ $length := len .Site.Params.keywords | add -1 -}}
  <meta name="keywords" content="{{ range $index, $element := .Site.Params.keywords }}{{ $element | safeHTML }}{{if ne $index $length }}, {{ end }}{{ end }}" />
{{- end -}}

{{- with .Site.Params.google_verification -}}
<meta name="google-site-verification" content="{{.}}" />
{{- end }}

<link rel="canonical" href="{{ .Permalink }}" />
{{ range (.Translations | sort) -}}
<link rel="alternate" href="{{ .Permalink }}" hreflang="{{ .Site.LanguageCode }}">
{{ end }}

{{- with .Site.Params.customFavicon -}}
<link rel="icon" href="{{ . | absURL }}" />
{{- end }}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
<link rel="stylesheet" href="{{ "css/den.css" | absURL }}">
{{ range .Site.Params.customCSS }}
<link rel="stylesheet" href="{{ "css/" | absURL }}{{ . }}">
{{ end }}

{{ with .OutputFormats.Get "RSS" }}
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
{{ end }}

{{/* https://gohugo.io/templates/internal/ */}}
{{- template "_internal/opengraph.html" . -}}
{{- template "_internal/google_news.html" . -}}
{{- template "_internal/schema.html" . -}}
{{- template "_internal/twitter_cards.html" . -}}

{{- if and .Site.GoogleAnalytics (not .Site.IsServer) -}}
  {{ template "_internal/google_analytics_async.html" . }}
{{- end -}}
